<template>
  <div class="hello">
     hello
  </div>
</template>

<script>
import qs from "qs";
export default {
  name: "HelloWorld",
  created() {

    let arr=[
        {
          Id: "123",
          Name: "张三"
        },
        {
          Id: "456",
          Name: "李四"
        }
      ];
    let dataz = {
      appid: "11222",
      signature: "sdfsdfsdfsdf",
      timestamp: 45852545,
      guid: "guidsssssssssssssssssssssss",
      body:JSON.stringify(arr)
    };
   
    //let a = { params: { sex: "女" } };

    this.$http.post(
        "Contact/AddContact",
          dataz ,
        {
          headers: {
            "Content-Type": "application/json,charset=utf-8"
          }
        }
      )
      .then(function(response) {
        console.log(response);
      })
      .catch(function(error) {
        console.log(error);
      });
  },
  data() {
    return {
      msg: "Welcome to Your Vue.js App"
    };
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1,
h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
